package com.refuel.controller;

import com.refuel.request.ActivityConfigRequest;
import com.refuel.response.Response;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import io.swagger.v3.oas.annotations.responses.ApiResponses;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhanghao
 * @description 活动配置相关接口
 * @date 2024/5/10 11:38
 **/
@RestController
@RequestMapping("/config/activity")
@Tag(name = "活动配置控制器", description = "活动配置相关接口")
public class ActivityConfigController extends BaseController {

    private static final Logger logger = LoggerFactory.getLogger(ActivityConfigController.class);

    /**
     * 活动配置接口
     * @return Response
     */
    @Operation(summary = "活动配置接口")
    @ApiResponses({
            @ApiResponse(responseCode = "200", description = "成功"),
            @ApiResponse(responseCode = "400", description = "xx参数错误")
    })
    @RequestMapping(method = RequestMethod.POST, path = "/save")
    public Response activitySave(@RequestBody ActivityConfigRequest request) {
        logger.info("activity guideRequest: {}", request);

        return Response.buildResponse();
    }
}
